package com.example.rabbit.controller;


import com.example.rabbit.entity.User;
import com.example.rabbit.service.Receiver;
import com.example.rabbit.service.Sender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ParamController {

    @Autowired
    private Sender sender;

    @RequestMapping(value = "/paramdemo")
    public void send2(){
        User user = new User(1,"xukang","12323546");
        sender.send("param_queue",user);
    }
}
